//
//  JLoadCV.h
//  jhf
//
//  Created by 计海峰 on 2017/11/23 14:05:37.
//  Copyright © 2017年 计海峰. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UITableViewCell+JpressBlock.h"
#import "UIScrollView+EmptyDataSet.h"
#import "JRefreshVCControl.h"

@interface JLoadCV : UICollectionView<UICollectionViewDelegate,UICollectionViewDataSource,DZNEmptyDataSetSource,DZNEmptyDataSetDelegate>

//数据源
@property (nonatomic,strong) NSMutableArray *dataArray;

//cell的复用
@property (nonatomic, copy) NSString *cellIdentiy;
//xib还是纯class 需要加载前设置
@property (nonatomic, assign) BOOL isCellClass;

//block 回调
@property (nonatomic, copy) BlockValue block;

//每个cell的大小
@property (nonatomic, assign) CGSize cellSize;

//行列间距  统一设置 默认10
@property (nonatomic, assign) CGFloat miniSpacing;

//行间距 默认10
@property (nonatomic, assign) CGFloat minimumLineSpacing;

//列间距 默认10
@property (nonatomic, assign) CGFloat minimumInteritemSpacing;

//整体内边框 默认10
@property (nonatomic, assign) UIEdgeInsets sectionInset;

//是否左对齐 默认NO
@property (nonatomic, assign) BOOL cellLeft;

//是否水平滚动 默认NO
@property (nonatomic, assign) BOOL horizontal;

//是否显示空数据
@property (nonatomic,strong) EmptyData *emptydata;

- (void)loadWithIdentity:(NSString *)cellName cellCellSize:(CGSize)size andBlock:(BlockValue)block;


- (void)loadWithIdentity:(NSString *)cellName cellCellSize:(CGSize)size andMinimumLineSpacing:(CGFloat)miniSpacing andHorizontal:(BOOL)horizontal andBlock:(BlockValue)block;

#pragma mark 有空显示的collectionview
- (void)loadWithIdentity:(NSString *)cellName cellCellSize:(CGSize)size andEmptyData:(EmptyData *)emptydata andMinimumLineSpacing:(CGFloat)miniSpacing andBlock:(BlockValue)block;

@end
